package reduce.fz.com.reduce.util;

import android.graphics.drawable.BitmapDrawable;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;

/**
 * Created by qingshengzheng on 15/11/10.
 */
public class PpWindow {
    private View view;
    private PopupWindow popupWindow;

    public static PpWindow newInstance(View view) {
        PpWindow pp = new PpWindow(view);
        return pp;
    }

    public PpWindow(View view) {
        this.view = view;

    }
    public void showCenter()
    {
        popupWindow = new PopupWindow(view, ViewGroup.LayoutParams.WRAP_CONTENT,
                ViewGroup.LayoutParams.WRAP_CONTENT);
        popupWindow.setOutsideTouchable(true);
        popupWindow.setBackgroundDrawable(new BitmapDrawable());
        //popupWindow.showAtLocation(mRlTakePhoto, Gravity.CENTER, 0, 0);
    }
}
